<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Index extends CI_Controller {

	public function __construct()
	{
		parent::__construct();
		//$this->load->model('Blogs','bg');
	}
	public function index()
	{
		$this->load->model('News');
		$data['list']=$this->News->getList(0);
		$this->load->view('Index/index',$data);
	}
	
	public function detail()
	{
		$id=$_GET['id'];
		$this->load->model('News');
		$data['info']=$this->News->getInfoById($id);
		$this->load->view('Index/detail',$data);
	}
	
}

/* End of file welcome.php */
/* Location: ./public/controllers/welcome.php */